home *** CD-ROM | disk | FTP | other *** search
/ PC World Interactive 1 / PC World Interactive 1 - Nisan 1997.iso / nostalji / bbs / music / sbbook.arj / SBBOOK / SOURCE / SBSIMDMO / GRAPH.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-11  |  1.1 KB  |  57 lines

  1. #include "filefunc.h"
  2. #include "drvrfunc.h"
  3.  
  4. //----------------------
  5. // CONSTANT DEFINITIONS
  6. //----------------------
  7. #define OFF         0
  8. #define ON                    1
  9.  
  10. #define ERROR             -1
  11. #define OK                    0
  12.  
  13. #define NORMAL            0
  14. #define HIGHLIGHT     1
  15.  
  16. #define SELECTABLE    1
  17. #define VIEWABLE        2
  18.  
  19. //------------------------
  20. // STRUCTURE DEFINITIONS
  21. //------------------------
  22. typedef struct
  23. {
  24.     int x;
  25.     int y;
  26. } COORD;
  27.  
  28. typedef struct
  29. {
  30.     int status;
  31.     char *title;
  32.     COORD loc;
  33.     COORD size;
  34.     unsigned mixLvl;
  35.     int lastChr;
  36.     FILEPTR fileList;
  37. } WINDOW;
  38.  
  39. //------------------
  40. // GLOBAL VARIABLES
  41. //------------------
  42. extern int mixer;
  43. extern char *memErr;
  44.  
  45. //------------------------
  46. // FUNCTION DECLARATIONS
  47. //------------------------
  48. void DrawBackground(int x1, int y1, int x2, int y2);
  49. void DrawWindow(WINDOW *win, int state);
  50. void InitScreen(void);
  51. void DemoExit(int exitState);
  52. void DrawSlider(WINDOW *win, int level, int state);
  53. void DrawFileList(WINDOW *win, int state);
  54. int DrawError(char *errorStr);
  55. int DrawDrvrInfo(int x, int y, int version, DVRINFO *drv0, DVRINFO *drv1,
  56.                                  DVRINFO *drv2, DVRINFO *drv3, DVRINFO *drv4);
  57.